import { request } from '../utils'

export async function createTeacher (params) {

  return request('/teacher/createTeacher', {
    method: 'post',
    data: params
  })
}

export async function getTeacher (params) {
  return request('/teacher/getTeacher', {
    method: 'get',
    data: params
  })
}

export async function deleteTeacher (params) {
  return request('/teacher/deleteTeacher', {
    method: 'post',
    data: params
  })
}

export async function updateTeacher (data) {
  return request('/teacher/updateTeacher', {
    method: 'post',
    data
  })
}
